
Last chance! 50% off unlimited learning
Sale ends in
bn.fit
objects to grain
objects and vice versa.## S3 method for class 'grain':
as.bn.fit(x)
## S3 method for class 'bn.fit':
as.grain(x)
grain
(for as.bn.fit
) or
bn.fit
(for as.grain
).grain
(for as.grain
) or bn.fit
(for as.bn.fit
).library(gRain)
a = bn.fit(hc(learning.test), learning.test)
b = as.grain(a)
c = as.bn.fit(b)
Run the code above in your browser using DataLab